package com.sbs.gaoxinqutoilet.adapter;


import android.view.View;

import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sbs.gaoxinqutoilet.R;
import com.sbs.gaoxinqutoilet.entity.TongjiEntity;
import com.zhy.autolayout.utils.AutoUtils;

import java.util.List;

/**
 * Created by 聪明一只哈 on 2018/5/30.
 * Time: 2018/5/30  17:37
 */

public class ToiletTongjiRvAdapter extends BaseQuickAdapter<TongjiEntity.DataBean, ToiletTongjiRvAdapter.BuyApplyViewHolder> {


    public ToiletTongjiRvAdapter(@LayoutRes int layoutResId, @Nullable List<TongjiEntity.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BuyApplyViewHolder helper, TongjiEntity.DataBean item) {


        helper.setText(R.id.item_tongji_name, item.getArea_name()+"");
        helper.setText(R.id.item_tongji_hunum, item.getZonghushu()+"");
        helper.setText(R.id.item_tongji_mission, item.getZongrenwu()+"");
      //  helper.setText(R.id.item_tf_address, item.getYigaizao()+"");



    }

    public class BuyApplyViewHolder extends BaseViewHolder {

        public BuyApplyViewHolder(View view) {
            super(view);
            AutoUtils.auto(view);
        }
    }
}
